package dao.Impl;

import dao.BookDao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class BookDaoImpl implements BookDao {
    private int[] array;
    private List<String> list;
    private Set<String> set;
    private Map<String,Integer> map;

    public void setArray(int[] array) {
        this.array = array;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setMap(Map<String, Integer> map) {
        this.map = map;
    }

    @Override
    public void save() {
        System.out.println("Book Dao");
        System.out.println("数组"+ Arrays.toString(array));
        System.out.println("List"+ list);
        System.out.println("HashMap"+ map);
        System.out.println("Set"+ set);
    }
}
